#ifndef TASKBYPERSON_H
#define TASKBYPERSON_H

#include <QWidget>
#include "ganttmodel.h"
#include "publicstruct.h"

class MainWindow ;

namespace Ui {
class TaskByPerson;
}

class TaskByPerson : public QWidget
{
    Q_OBJECT

public:
    explicit TaskByPerson(QWidget *parent = nullptr);
    ~TaskByPerson();

private slots:
    void on_bt_query_clicked();

private:
    Ui::TaskByPerson *ui;
    MainWindow *m_mwindow ;
    GanttModel* m_personTaskGnt;
    void reflashPagingModelView(GanttModel *prjGntModel, int curPage);
    void initPersonPie(QList<PersonHours> &hoursList);
};

#endif // TASKBYPERSON_H
